package com.housediyadmin.command.buildingCommand
{
	import com.housediyadmin.events.buildingEvents.DeleteBuildingEvent;
	import com.housediyadmin.service.BuildingRemoteObjectService;
	
	import org.robotlegs.mvcs.Command;
	
	/**
	 * 
	 * @author yanghanbing
	 * 2010/11/16
	 */	
	public class DeleteBuildingCommand extends Command
	{
		[Inject]
		public var service:BuildingRemoteObjectService;
		
		[Inject]
		public var event:DeleteBuildingEvent;
		
		override public function execute():void
		{
			service.deleteBuilding(event.buildingIds, event.areaIds);
		}
	}
}